class ImageFile < ActiveRecord::Base
  has_one :media, :as => :mediable
  has_attachment :content_type => :image, 
                 :storage => :file_system, 
                 :max_size => 2.megabyte,
                 :resize_to => '2500x2000>',
                 :thumbnails => { :thumb => '200x200>', :medium => '600x600>', :large => '1024x768>' },
                 :processor => :rmagick
  validates_as_attachment
end
